<?php
include "../../config/ini.php";

$acceptFunctions = Array("newTeam","saveTeam","getTeams","editTeam","deleteTeam","getUsersTeam");
preg_match("(^[a-zA-Z]+$)",$_GET['f'],$match);

if(count($match) > 0)
	$nameFunction = $match[0];

if(in_array($nameFunction,$acceptFunctions)){
	parse_str($_SERVER['QUERY_STRING'], $obj);
	unset($obj["f"]);
	echo C_Team::$nameFunction($obj);
}else{
	echo "Erro!";
}
?>